package com.thinkcar.core.base;

import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotNull;
import lombok.Data;

import java.io.Serial;
import java.io.Serializable;

/**
 * 通用分页请求
 */
@Data
public class BasePageRequest implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    @NotNull(message = "页码不能为空")
    @Schema(description = "页码", example = "1")
    private Integer pageNum;

    @NotNull(message = "每页数量不能为空")
    @Schema(description = "每页数量", example = "10")
    private Integer pageSize;
}